Community Ecology by Mark Gardener

Community Ecology by Mark Gardener

Author:Mark Gardener
Language: eng
Format: epub
Publisher: Vearsa
Published: 2014-02-28T16:00:00+00:00


So, using Excel to determine beta diversity is fairly straightforward but, of course, the more samples you have the more ‘individual’ your formulae will become. Using R gives a bit more flexibility because you do not have to create formulae for individual groups of samples. In the following exercise you can have a go at calculating the beta diversity using the same ground beetle data.

Have a Go: Use R to calculate beta diversity for species richness using replicated habitat data

You will need the CERE.RData file for this exercise; you’ll be looking at the ground beetle data. There are two data items gb.biol contains the community data and gb.site contains the habitat information. You’ll also need the vegan package.

1. Start by making sure that the vegan package is loaded and ready:

> library(vegan)

2. The gamma diversity can be found for the habitats by with the specnumber() command, which allows a grouping variable to be used:

> gamma <- specnumber(gb.biol, gb.site$Habitat)

> gamma



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.